/*
 * @Description:
 * @Author bianpengfei
 * @create 2021/3/21 17:48
 */
module.exports = {
  presets: ['@vue/cli-plugin-babel/preset'],
  env: {
    // development: {
    //   plugins: ['dynamic-import-node']
    // }
  },
  plugins: [
    [
      'import',
      {
        libraryName: 'vxe-table',
        style: true // 样式是否也按需加载
      },
      'vxe-table'
    ],
    [
      'import',
      {
        libraryName: '@bianpengfei/utils',
        camel2DashComponentName: false
      },
      '@bianpengfei/utils'
    ],

    [
      'import',
      {
        libraryName: 'vxe-table',
        style: true // 样式是否也按需加载
      }
    ]

    // [
    //   'import',
    //   {
    //     libraryName: '@bianpengfei/b-ui',
    //     camel2DashComponentName: false,
    //     style: (name) => `${name}/style.css`
    //   },
    //   '@bianpengfei/b-ui'
    // ],
  ]
}
